package tk.leafotto.ssm.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.leafotto.ssm.beans.Dvrinfo;
import tk.leafotto.ssm.dao.DvrinfoMapper;

import java.util.List;

@Service
public class DvrinfoService {
    @Autowired
    private DvrinfoMapper dvrinfoMapper;

    public List<Dvrinfo> getDvrInfo(){
        return dvrinfoMapper.getDvrInfo();
    }

    public int putDvrInfo(Dvrinfo dvrinfo) {
        dvrinfoMapper.putDvrInfo(dvrinfo);
        return dvrinfo.getId();
    }

    public int remdvrinfo(Integer id) {
        return dvrinfoMapper.remDvrInfo(id);
    }
}
